<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，球会，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		
		<div class="content content_hastab">	
		<div><span >活动编号: </span><span id="activity_id"></span></div>
		<div><span >活动名称: </span><span id="activity_name"></span></div>
        <div><span >报名开始时间: </span><span id="apply_start_time"></span></div>			
		<div><span >报名结束时间: </span><span id="apply_end_time"></span></div>
		<div><span >活动开始时间: </span><span id="activity_start_time"></span></div>
		<div><span >活动结束时间: </span><span id="activity_end_time"></span></div>
		<div><span >活动报名人数: </span><span id="apply_number"></span></div>
		<div><span >活动最大报名人数: </span><span id="max_apply_number"></span></div>
		<div><span >活动简介: </span><span id="activity_brief"></span></div>
		<div><span >活动内容: </span<div>
		<div><textarea id="activity_content" name="activity_content" rows="4" cols="20" ></textarea></div>
		<div><span >活动场地: </span><span id="activity_gymnasium"></span></div>
		<div><span >活动图片: </span></div>
		<div><img id="activity_picture" src=""></img></div>
		<div><span >活动性质: </span><span id="activity_if_public"></span></div>
		<div><span >活动状态: </span><span id="activity_status"></span></div>
	    </div>	


<script type="text/javascript">
       
       $(function(){
		$.post('__URL__/activityDetail',{'act_id':parent.selected},function(resultList){ 			   
			  ActivityJson=resultList.result;
			  document.getElementById("activity_id").innerHTML=ActivityJson.activity_id;
              document.getElementById("activity_name").innerHTML=ActivityJson.activity_name;
			  document.getElementById("apply_start_time").innerHTML=ActivityJson.apply_start_time;
			  document.getElementById("apply_end_time").innerHTML=ActivityJson.apply_start_time;
			  document.getElementById("activity_start_time").innerHTML=ActivityJson.activity_start_time;
			  document.getElementById("activity_end_time").innerHTML=ActivityJson.activity_end_time;
			  document.getElementById("apply_number").innerHTML=ActivityJson.apply_number;
			  document.getElementById("max_apply_number").innerHTML=ActivityJson.max_apply_number;
			  document.getElementById("activity_brief").innerHTML=ActivityJson.activity_brief;
			  document.getElementById("activity_content").innerHTML=ActivityJson.activity_content;
			  document.getElementById("activity_gymnasium").innerHTML=ActivityJson.activity_gymnasium;
			  document.getElementById("activity_content").disabled = true;
			  if (ActivityJson.activity_if_public==0) document.getElementById("activity_if_public").innerHTML="不公开";
			  else document.getElementById("activity_if_public").innerHTML="公开";
			  document.getElementById("activity_picture").src=ActivityJson.activity_picture;
			  var status=ActivityJson.activity_status;
			  switch(status)
			  {
			     case "0":
				 document.getElementById("activity_status").innerHTML="申请";
				 break;
				 case "1":
				 document.getElementById("activity_status").innerHTML="报名";
				 break;
				 case "2":
				 document.getElementById("activity_status").innerHTML="进行";
				 break;
				 case "3":
				 document.getElementById("activity_status").innerHTML="结束";
				 break;
			  }

			  
    	     },'json');  
			
		});
</script>